public class Main {
    public static void main(String[] args) {
        String str1 = "hello";//字面值常量，本身就在池中
        char[] arrays = {'h','e','l','l','o'};
        String str2 = new String(arrays);
        String str3 = str2.intern();

        System.out.println(str1 == str2);
        System.out.println(str1 == str3);
    }
}
